<template>
	<view class="contact">
		<image class="img" src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1603899076506&di=0bb7529be1f8966b095e1b7b731607cc&imgtype=0&src=http%3A%2F%2Fimg.weimob.com%2Fstatic%2F9d%2Fb8%2Fdb%2Fimage%2F20140305%2F20140305113242_25530.jpg" ></image>
		<view class="info">
				<view @click="call">联系电话：11055522225(call)</view>
				<view>地址：浙江杭州下沙区</view>
		</view>
		<map class="map" :longitude="longitude" :scale="scale" :latitude="latitude" :markers="markers"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude:112.428209,
				latitude:34.60819,
				scale:15,
				markers:[//图标
					{
						longitude:112.428209,
						latitude:34.60819,
						iconPath:'../../static/icon/cart-active.png',
						width:30,
						height:30
					}
				]
			}
		},
		methods: {
			call(){
				uni.makePhoneCall({
					phoneNumber:'18437917280'
				})
			}
		}
	}
</script>

<style lang="scss">
	.contact{
		.img{
			width: 750rpx;
			height: 320rpx;
		}
		.info{
			padding:10rpx 20rpx;
			font-size: 30rpx;
			view{
				line-height: 70rpx;//行高
				border-bottom: 1px solid
			}
		}
		.map{
				width: 750rpx;
				height: 750rpx;
			}
	}
</style>
